package dict

import (
	"github.com/ifnk/micro-blog/internal/pkg/dbcontext"
	"github.com/ifnk/micro-blog/internal/pkg/log"
	"github.com/ifnk/micro-blog/protobuf/dict_pb"
)

func NewDictDetailServer(logger *log.Logger, db *dbcontext.GormDB, jinzhuDB *dbcontext.JinZhuDB) DictDetailServer {
	return DictDetailServer{
		logger:                         logger,
		db:                             db,
		DictDetailServiceDefaultServer: dict_pb.DictDetailServiceDefaultServer{DB: jinzhuDB.DB},
	}
}

type DictDetailServer struct {
	dict_pb.DictDetailServiceDefaultServer
	logger *log.Logger
	db     *dbcontext.GormDB
}
